<?php echo $this->Html->script(array('actions'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>
<?php echo $this->Html->css(array('users.register','lastminute-left','search-left','form','actions'),null,array('inline'=>false));?>

<?php 
// wymagane w layout
echo $this->Section->main();
?>

<div class="content">
	<div class="left-column">
		<?php echo $this->Yachts->search_form_left();?>		
		<div class="clr"></div>	
		<?php echo $this->Yachts->lastminute(2);?>
		<div class="clr"></div>	
	</div>
	<div class="middle-column main-column">
       	<div class="box corners">
    	
	        <h2><?php echo __('Create new account',true)?></h2>
			<?php echo $this->Section->generate(1);?>	

			<table width="100%" style="padding-top:0px; margin: 0px;" cellpadding="0" cellspacing="0">
			<tr>
				<td align="left" valign="top" style="padding-top:0px; margin: 0px;" width="50%">
					<?php echo $this->Form->create('User',array('url'=>array('plugin'=>false,'controller'=>'users','action'=>'register')));?>
					<table width="100%" style="padding-top:0px; margin: 0px;" cellpadding="0" cellspacing="0">
						<tr>
							<td align="left" valign="top" style="padding-top:0px; margin: 0px;">
								<fieldset>
								<legend><h3><?php __("Your Personal Information"); ?></h3></legend>
								<?php
									echo $this->Form->hidden('id');
									echo $this->Form->hidden('user_id');
									echo $this->Form->input('first_name',array('label'=>__('First Name <span class="red">*</span>',true)));
									echo $this->Form->input('last_name',array('label'=>__('Last Name <span class="red">*</span>',true)));
									echo $this->Form->input('address1',array('label'=>__("Address",true)));
									echo $this->Form->input('address2',array('label'=>__("Address",true)));
									echo $this->Form->input('address3',array('label'=>__("City",true)));
									echo $this->Form->input('address4',array('label'=>__("Zip Code",true)));
									echo $this->Country->selectbox('User.address5');
									echo $this->Form->input('phone1',array('label'=>__('Home phone <span class="red">*</span>',true)));
									echo $this->Form->input('phone2',array('label'=>__('Work phone',true)));
									echo $this->Form->input('phone2',array('label'=>__('Fax number',true)));
								?>
								</fieldset>
							</td>
						</tr>
						<tr>
							<td align="left" valign="top" style="padding-top:0px; margin: 0px;">
								<fieldset>
								<legend><h3><?php __("Account information"); ?></h3></legend>
								<?php
									echo $this->Form->input('email',array('label'=>__('E-mail <span class="red">*</span>',true),'after'=>'<span class="after">'.__('A valid e-mail address. All e-mails from the system will be sent to this address. The e-mail address is not made public and will only be used to receive a new password or wish to receive certain news or notifications by e-mail.',true).'</span>'));
									echo $this->Form->input('reminder',array('label'=>__('Reminders <span class="red">*</span>',true),'options'=>array(1=>__('Yes',true),0=>__('No',true)),'empty'=>__('Please select',true),'after'=>'<span class="after">'.__('Would like to receive email, reminders, forms, and invoices through email?',true).'</span>'));
									echo $this->Form->input('newsletter',array('label'=>__('Newsletters <span class="red">*</span>',true),'options'=>array(1=>__('Yes',true),0=>__('No',true)),'empty'=>__('Please select',true),'after'=>'<span class="after">'.__('Would like to subscribe to our online newsletter and receive periodic updates and special offers?',true).'</span>'));
								?>
								</fieldset>
							</td>
						</tr>
						<tr>
							<td>								
								<?php echo $html->image('/captcha/captcha/image', array('escape'=>false));?>
								<?php echo $form->input('captcha', array('label' => false,'after'=>'<span class="required">*</span> '.__(' rewrite here numbers from image',true),'style'=>'width:50px;','maxlength'=>3));?>
							</td>
						</tr>
					</table>
					<?php echo $this->Form->end(__('Register',true));?>
				</td>
			</tr>

			</table>

			
	        <div class="clr"></div>	        
	    </div>
        <!-- box -->
    </div>
    <!--/centercol -->
    
    <div class="right-column">
    	<div class="box corners register-info">
    		<h2><?php echo __('Booked or Quoted Before?',true)?></h2>
    		<?php echo $this->Section->generate(2);?>
    	</div>
    	<div class="shadow-left"></div>
   		 <div class="clr"></div> 	
    	<div class="box corners register-help">
    		<h2><?php echo __('Need to help?',true)?></h2>
    		<?php echo $this->Section->generate(3);?>
    	</div>
    	<div class="shadow-left"></div>
    </div>
    <div class="clr"></div>

</div>
 <div class="clr"></div>